package com.liang.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liang.dao.CategoryDao;
import com.liang.pojo.Category;
import com.liang.pojo.Store;
import com.liang.service.CategoryService;
@Service
public class CategoryServiceImpl implements CategoryService{
	@Autowired
	CategoryDao categoryDao;
	
	@Override
	public List<Category> selectAllCategory() {
		return categoryDao.selectAllCategory();
	}

	@Override
	public List<Store> selectCategoryById(int id) {
		return categoryDao.selectCategoryById(id);
	}

}
